﻿using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;

namespace CRM.Models
{
    public class Nation : BaseModel
    {
        public int Id { get; set; }

        [MaxLength(100)]
        public string LocationName { get; set; }
        
        [JsonIgnore]
        public Nation Parent { get; set; }
        public Collection<Nation> Children { get; set; }
        public int ParentId { get; set; }
        
        [MaxLength(50)]
        public string CountryIsoCode { get; set; }
        [MaxLength(50)]
        public string LocationType { get; set; }
        [MaxLength(100)]
        public string GeoName { get; set; }
        [MaxLength(50)]
        public string GeoId { get; set; }
        [MaxLength(50)]
        public string GeoNameCn { get; set; }
    }
}